package com.wangzh.regex;

import java.util.Arrays;

public class Demo4 {
    public static void main(String[] args) {
        String str ="小李asdfasdf小王asdfss小张";

        String s = str.replaceAll("[\\w&&[^_]]+", "vs");

        String[] split = str.split("[\\w&&[^_]]+");
        System.out.println(Arrays.toString(split));
    }
}
